package com.xpertline.ui.factory;
import java.util.Arrays;
import java.util.List;

import javax.swing.JComboBox;

import org.jdesktop.swingx.combobox.ListComboBoxModel;

import com.mimi.enumtype.PeriodTimeEnum;

public final class PeriodComboBox {
	/**
	 * @wbp.factory
	 */
	public static JComboBox createJComboBox() {
		JComboBox comboBox = ComboBoxFactory.createJComboBox();
		List<PeriodTimeEnum> dataList = Arrays.asList(PeriodTimeEnum.values());
		ListComboBoxModel<PeriodTimeEnum> model = new ListComboBoxModel<PeriodTimeEnum>(dataList);
		comboBox.setModel(model);
		return comboBox;
	}
}